package com.ruoyi.paper.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.paper.mapper.StudentScoreMapper;
import com.ruoyi.paper.domain.StudentScore;
import com.ruoyi.paper.service.IStudentScoreService;
import com.ruoyi.common.core.text.Convert;

/**
 * 学生成绩Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Service
public class StudentScoreServiceImpl implements IStudentScoreService 
{
    @Autowired
    private StudentScoreMapper studentScoreMapper;

    /**
     * 查询学生成绩
     * 
     * @param scoreId 学生成绩主键
     * @return 学生成绩
     */
    @Override
    public StudentScore selectStudentScoreByScoreId(String scoreId)
    {
        return studentScoreMapper.selectStudentScoreByScoreId(scoreId);
    }

    /**
     * 查询学生成绩列表
     * 
     * @param studentScore 学生成绩
     * @return 学生成绩
     */
    @Override
    public List<StudentScore> selectStudentScoreList(StudentScore studentScore)
    {
        return studentScoreMapper.selectStudentScoreList(studentScore);
    }

    /**
     * 新增学生成绩
     * 
     * @param studentScore 学生成绩
     * @return 结果
     */
    @Override
    public int insertStudentScore(StudentScore studentScore)
    {
        return studentScoreMapper.insertStudentScore(studentScore);
    }

    /**
     * 修改学生成绩
     * 
     * @param studentScore 学生成绩
     * @return 结果
     */
    @Override
    public int updateStudentScore(StudentScore studentScore)
    {
        return studentScoreMapper.updateStudentScore(studentScore);
    }

    /**
     * 批量删除学生成绩
     * 
     * @param scoreIds 需要删除的学生成绩主键
     * @return 结果
     */
    @Override
    public int deleteStudentScoreByScoreIds(String[] scoreIds)
    {
        return studentScoreMapper.deleteStudentScoreByScoreIds(scoreIds);
    }

    /**
     * 删除学生成绩信息
     * 
     * @param scoreId 学生成绩主键
     * @return 结果
     */
    @Override
    public int deleteStudentScoreByScoreId(String scoreId)
    {
        return studentScoreMapper.deleteStudentScoreByScoreId(scoreId);
    }
} 